import request from '@/utils/request'

export function uploadImg(data) {
  return request({
    url: '/scenic/uploadImg',
    method: 'post',
    data: data
  })
}


export function uploadStrategy(data) {
  return request({
    url: '/scenic/uploadStrategy',
    method: 'post',
    data: data
  })
}


export function addScenicspot(data) {
  return request({
    url: '/scenic/addScenicspot',
    method: 'post',
    data: data
  })
}

export function findAllScenicspot() {
  return request({
    url: '/scenic/findAllScenicspot',
    method: 'post',
  })
}

export function findAllScenicspotByKeyword(data) {
  return request({
    url: '/scenic/findAllScenicspotByKeyword',
    method: 'post',
    data
  })
}

export function deleteScenicspot(data) {
  return request({
    url: '/scenic/deleteScenicspot/'+data,
    method: 'get'
  })
}


export function updateScenicspot(data) {
  return request({
    url: '/scenic/updateScenicspot',
    method: 'post',
    data
  })
}

export function downloadStrategy(data) {
  return request({
    url: '/scenic/downloadStrategy',
    method: 'post',
    data
  })
}